﻿using System.ComponentModel;
using System;
using System.Text;

namespace NTTDATA.BEENChina.ResultCertification.PropertyGridUtil.CustomObject
{
    [TypeConverter(typeof(CustomConverter))]
    public class CheckPair : PropertyData
    {
        [Category("Required")]
        public string Key
        {
            get;
            set;
        }

        [Category("Required")]
        public string Value
        {
            get;
            set;
        }

        #region PropertyData impl
        public   string GetDisplayName()
        {
            return this.Key + " " + this.Value;
        }
        public  string GetDescription()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append(this.Key);
            sb.Append(",");
            sb.Append(this.Value);
            sb.Append(",");

            return sb.ToString();
        }

        public  string GetValue()
        {
            return this.Key + " " + this.Value;
        }
        #endregion
    }
}
